package com.fgba.express.data.search;

import com.fgba.express.comm.enums.NoticeType;
import com.fgba.express.core.search.BaseSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 通知Model
 * </p>
 *
 * @author fgba
 * @since 2022-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "NoticeSearch对象", description = "通知查询")
public class NoticeSearch extends BaseSearch {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "通知标题")
    private String title;

    @ApiModelProperty(value = "通知类型")
    private NoticeType type;

    @ApiModelProperty(value = "发布人")
    private String releaseName;

    @ApiModelProperty(value = "发布开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime releaseTimeStart;

    @ApiModelProperty(value = "发布结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime releaseTimeEnd;
}
